home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7123 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: EU.net!sun4nl!xs4all!marketgraph!rvg
  2. From: rvg@marketgraph.xs4all.nl (Ruud van Gaal)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: alloca() on Amiga?
  5. Keywords: Keywords: alloca
  6. Message-ID: <393brdv60.alamito@marketgraph.xs4all.nl>
  7. Date: Tue, 9 Apr 96 17:59:57 DST
  8. References: <2720tdg60.alamito@marketgraph.xs4all.nl> <4k1oce$lub@blackice.winternet.com> <DpE7Ip.7or@unx.sas.com>
  9. Reply-To: rvg@marketgraph.xs4all.nl
  10. X-Newsreader: Alamito Mail and News Manager (V2.0.4 for Waffle) registered to MARKETGRAPH VISUAL AUTOMATION
  11.  
  12. In <DpE7Ip.7or@unx.sas.com> walker@chang.unx.sas.com (Doug Walker) wrote:
  13. >In article <4k1oce$lub@blackice.winternet.com>,
  14. >Anthony Pang <apang@winternet.com> wrote:
  15. >>In article <2720tdg60.alamito@marketgraph.xs4all.nl>,
  16. >>Ruud van Gaal <rvg@marketgraph.xs4all.nl> wrote:
  17. >>>Is there a nice way to get a working alloca() function for the Amiga?
  18. >>>It is present on all PC and Unix C implementations, but not on the Amiga.
  19. >>>(it allocates mem from the stack, automatically freeing it upon return 
  20. from 
  21. >>>subroutine).
  22. >>
  23. >>GCC and SAS have alloca().  I think DICE has it too.
  24. >
  25. >This is not correct. SAS/C does not supply an alloca() function.
  26. >Third parties may have been able to implement one, but it's not
  27. >a trivial operation.
  28.  
  29. Indeed, SAS doesn't have one, but I've received source code for an 
  30. implementation which does not free memory upon function exit (would be very 
  31. tricky), but somewhere at a later point (garbage collection). It's not really 
  32. the ideal thing, but it's close (enough for now).
  33. Thanks for all the replies!
  34.  
  35.  
  36.  
  37. --
  38. Ruud van Gaal
  39. MarketGraph Visual Automation
  40. E-Mail                : rvg@marketgraph.xs4all.nl
  41. DoomShell 4.5 homepage: http://www.xs4all.nl/~jwkorver
  42. "...Works fascinates me. I could sit and watch it for hours..."
  43.  
  44.